#ifndef		__MUTEXUNIX_HPP__
# define	__MUTEXUNIX_HPP__

#ifndef	_WIN32
#include <pthread.h>
#include <stdlib.h>

typedef pthread_mutex_t myMutex;

class					MutexUnix
{
public:
  static bool			create(myMutex *var);
  static void			destroy(myMutex *var);
  static bool			lock(myMutex *var);
  static bool			tryLock(myMutex *var);
  static bool			unlock(myMutex *var);
};


#endif /*!_WIN32*/

#endif	/* __MUTEXUNIX_HPP__ */
